#ifndef TIME_H
#define TIME_H

#define PIT_OSC_FREQ 1193182

#define PIT_CHANNEL0_DATA_PORT 0x40
#define PIT_COMMAND_PORT 0x43

#define PIT_CHANNEL0 (0<<6)
#define PIT_MODE_LOHI (3<<4) //Read/Load least significant byte first, then most significant byte
#define PIT_MODE_3 (3<<1) //Periodically timed interrupts

void time_init();
void exception_handler_time(void);

#endif